package java学习.leetcode.editor.en;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 * **************
 * 项目名称: 蓝桥杯-Java学习 <br/>
 * 文件名称:  <br/>
 * 文件描述: 这里添加您的类文件描述，说明当前文件要包含的功能。 <br/>
 * 文件创建：刘世锦Lenovo <br/>
 * 创建时间: 2022/9/15 <br/>
 *
 * @version v1.0 <br/>
 * @update [序号][日期YYYY-MM-DD][更改人姓名][变更描述]<br/>
 * *************
 */
public abstract class A {
    public void get(A a){
        a.get();
    }
    public abstract void get1();
    public void  get(){
        System.out.println("A");
    }

    public static void main(String[] args) {
//        A a = new A();
//        B b = new B();
//        a.get();;
//        b.get(a);
//        float d = 2.0;
//        String val = null; int x = Integer.parseInt(val); System.out.println(x);
        Map<String,String> schools=new HashMap<String,String>(); for(int i = 0; i<3; i++){ schools.put(""+i, "stu"+i); } System.out.println(schools.get("1"));
//        int[] i = new int[3]; System.out.println(i[3]);
        String a = "a", b = "b";
        String c = a+b;
        System.out.println(a+b==c);
        ArrayList<String> list = new ArrayList();
        list.add("1");
//        list.add("2"); list.add("3"); for (int i = list.size(); i > 0; i--) { list.remove(i); }
//        list.set(1,"b");
//        System.out.println(list.toString());
//        Map<String,String> map = null;
//        map.put("1","2");
        TreeMap<Integer, String> map = new TreeMap<>();
        map.put(1,"A");
        map.put(3,"c");
        map.put(2,"D");
        if (map.containsKey(3)){
            map.replace(3,"B");
        }
        System.out.println(map.toString());
        int w = 5;
        System.out.println(w>5?10.9:9);

    }
}
 abstract class  B  extends A{
    @Override
    public abstract void get1() ;

     @Override
    public void get() {
        System.out.println("B");
    }
}

interface C {
    public abstract  void get33();
}

class Super {
    public Integer getLenght() {return new Integer(4);}
}
 class Sub extends Super {

//    public Long getLenght() { return new Long(5); }
//    public static void main(String[] args) {
//        Super sooper = new Super();
//        Sub sub = new Sub();
//        System.out.printIn(sooper.getLenght().toString(0) +“”+
//                sub.getLenght().toString() );
//    }
}